package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.LklMerchant;
import com.xmy.cultivate.mapper.LklMerchantMapper;
import com.xmy.cultivate.service.ILklMerchantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 拉卡拉商户号表 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-12-25
 */
@Service
public class LklMerchantServiceImpl extends ServiceImpl<LklMerchantMapper, LklMerchant> implements ILklMerchantService {

    @Autowired
    LklMerchantMapper lklMerchantMapper;

    @Override
    public List<LklMerchant> getLklMerchant(String yearPart, String quarterNum) {
        List<LklMerchant> lklMerchantList = lklMerchantMapper.getLklMerchantList(yearPart, quarterNum);
        return lklMerchantList;
    }

    @Override
    public List<LklMerchant> getMerchantNameBySchoolId(String schoolId) {
        List<LklMerchant> merchantNameBySchoolId = lklMerchantMapper.getMerchantNameBySchoolId(schoolId);
        return merchantNameBySchoolId;
    }
}
